package generic;

import java.util.ArrayList;
import java.util.HashMap;

/**
 * @Author:Cjj
 * @Date: 2025/4/29
 * @Description:泛型类
 */
public class Test {
    public static void main(String[] args) {
        GenericCustom<String, Double, Long> genericCustom = new GenericCustom<>();
        genericCustom.method1("abc");

        GenericCustom genericCustom1 = new GenericCustom();
        GenericImpl2<String, Double, Long> impl2 = new GenericImpl2<>();
        impl2.method1("abc");


        GenericMethod method = new GenericMethod();
        //根据实参确定泛型类型
        method.method(3);


    }
}
